<?php
require_once './objects.php';
require_once './functions.php';
session_start();
header('Content-Type: application/json; charset=utf-8');
//$datos = json_decode($_GET["datos"]);
$nick=$_GET["nick"];
$pass=$_GET["pass"];
$email=$_GET["email"];

$pass=sha1(md5($pass));

$array=User::createUser($nick,$pass,$email);

echo json_encode($array);

?>